<?php
/**
 * File: bbspostactivity.php.
 * Author: zhouzhe@haibao.com
 * Editor: PhpStorm
 * Date: 16/5/30 下午5:45
 * Brief:
 */
namespace haibao\cms\model\data;

class BbsPostActivity extends \haibao\cms\model\data\Base{
	/**
	 * 是否推送系统消息
	 */
	const PUSH_MESSAGE_YES = 0;

	const PUSH_MESSAGE_NO = 1;
	/**
	 * @var帖子IdE
	 */
	public $PostId;

	/**
	 * @var标题
	 */
	public $Title;

	/**
	 * @var中奖者Id
	 */
	public $WinnerId;

	/**
	 * 排除名单
	 */
	public $ExcludeId;

	/**
	 * @var中奖数
	 */
	public $PrizeNum;

	/**
	 * @var创建者
	 */
	public $CreateBy;

	/**
	 * @var是否推送消息
	 */
	public $IsPushMessage;

	/**
	 * 推送信息
	 */
	public $Message;

	/**
	 * @var结束时间
	 */
	public $EndDate;

	/**
	 * @var结束时间
	 */
	public $CreateTime;

	/**
	 * 帖子链接
	 */
	public $ThreadUrl;

	/**
	 * @var中奖数
	 */
	public $WinnerNum;

	/**
	 * @var创建者名称
	 */
	public $Author;
	public function __construct(){
		parent::__construct();
		$this->intField('PostId', 'PostId',true);
		$this->stringField('Title', 'Title',true);
		$this->intField('WinnerId', 'WinnerId',false);
		$this->intField('ExcludeId', 'ExcludeId',false);
		$this->intField('PrizeNum', 'PrizeNum',false);
		$this->intField('CreateBy', 'CreateBy',true);
		$this->intField('IsPushMessage', 'IsPushMessage',false);
		$this->intField('Message', 'Message',false);
		$this->dateField('EndDate', 'EndDate',false);
		$this->dateField('CreateTime', 'CreateTime',true);

		$this->setTableName ( 'BBSPostActivity' );
	}
}